home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
source
/
tifreadr.sit
/
Tiff Window DEMO
/
adjust TE rect.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-30
|
635b
|
18 lines
#include "my color.h"
adjust_TE_rect(a_window) /* This routine is called from the "do mouse" routine,
Here I will re-size the TE destination and view
rectangles after the user has "grown" the window */
CWindowPtr a_window;
{
register TEHandle the_text;
the_text = (TEHandle)((CWindowPeek)a_window)->refCon;
(**the_text).destRect = a_window->portRect;
(**the_text).destRect.right = (**the_text).destRect.right - BAR_WIDTH;
(**the_text).destRect.bottom = (**the_text).destRect.bottom - BAR_WIDTH;
InsetRect(&(**the_text).destRect, 4, 0);
(**the_text).viewRect = (**the_text).destRect;
TECalText(the_text);
}